package com.yoo.module_base.utils

import android.util.Log
import com.orhanobut.logger.Logger

object LogUtil {
    var idDebug :Boolean = false
    fun init(idDebug :Boolean){
        this.idDebug = idDebug
    }
    fun infoLog(log: String?) {
        if (log == null) return
        if (idDebug) {
            Logger.i(log)
        }
    }

    fun debugLog(log: String?) {
        if (log == null) return
        if (idDebug) {
            Logger.d(log)
        }
    }

    fun debugLog(tag: String?, log: String?) {
        if (log == null) return
        if (idDebug) {
            Log.d(tag, log)
        }
    }

    fun errorLog(log: String?) {
        if (log == null) return
        if (idDebug) {
            Logger.e(log)
        }
    }
}